package rubeena;

public class Student {
	
	private String names;
	private String rno;
	
	public static String grade = "one";

	
	static
	{
		System.out.println("static blocks called only once ie when class is loaded");
	}
	
	public  void sayHello()
	{
		System.out.println("Hello not in static method");		
	}
	
	public static void sayHello(String name)
	{
		System.out.println("Hello in static method-"+ name);
	}
	

	public Student(String name, String rno)
	{
		this.names = name;
		this.rno = rno;
	}
	
	public String getName()
	{
		return names;
	}
	
	public String getRno()
	{
		return rno;
	}
	
	public void setName(String name)
	{
		this.names = name;
	}
	
	public void setRno(String Rno)
	{
		this.rno = Rno;
	}

}
